import {ref, unref} from "vue";
import {useGo} from "/@/hooks/web/usePage";

export function  useSearch(){
    const go = useGo();
    const keyword = ref('')
    function onSearch(searchValue: string){
        go({path: '/search/index',query: {keyword:searchValue}});
    }
    return {
        keyword,
        onSearch
    }
}
